﻿/*********************************************************************
 *
 *                             NOTICE
 *               COPYRIGHT (c) 2012 Panoscopix Software, Inc.
 *                UNPUBLISHED - ALL RIGHTS RESERVED
 * 
 *      This program is confidential, proprietary, and a trade
 *   secret of Panoscopix Software, Inc. The receipt or possession of
 *     this program does not convey any rights to reproduce or
 *      disclose its contents, or to manufacture, use, or sell
 *       anything that it may describe, in whole or in part, 
 *   without the specific written consent of Panoscopix Software, Inc.
 *
 * Simple Input Processor interface (e.g., acting on a string of input
 * from the Input Generator).
 * 
 *******************************************************************/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace FileSystem
{
    interface IInputProcessor
    {
        /// <summary>
        /// Return a prompt that could be displayed.
        /// </summary>
        /// <returns>Return a prompt that could be displayed.</returns>
        String getPrompt();

        /// <summary>
        /// Processes a line of input, directing any output to out.
        /// </summary>
        /// <param name="input">Line to process, should not be null nor empty.</param>
        /// <returns>True if processing can continue; false if it should end.</returns>
        bool process(String input);
    }
}
